/*
package com.zzyl.service.impl;

import cn.hutool.core.bean.BeanUtil;
import com.github.pagehelper.PageHelper;
import com.zzyl.dto.NursingLevelDto;
import com.zzyl.entity.NursingLevel;
import com.zzyl.mapper.NursingLevelMapper;
import com.zzyl.mapper.NursingMapper;
import com.zzyl.service.NursingLevelService;
import com.zzyl.vo.NursingLevelVo;
import com.zzyl.vo.NursingPlanVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.time.LocalDateTime;
import java.util.List;

*/
/**
 * @Description NursingLevelImpl
 * @Author Haiying Ji
 * @Date 2025-08-31
 *//*

@Service
public class NursingLevelImpl implements NursingLevelService {
    @Autowired
    private NursingLevelMapper nursingLevelMapper;
//    private NursingMapper nursingMapper;
    @Autowired
    private NursingLevelService nursingLevelService;

    @Override
    public void insertNursingLevel(NursingLevelVo nursingLevelVo) {
        NursingLevel nursingLevel = BeanUtil.toBean(nursingLevelVo, NursingLevel.class);
        nursingLevel.setCreateTime(LocalDateTime.now());
        nursingLevel.setCreateBy(1L);
        nursingLevelMapper.insertNursingLevel(nursingLevel);
    }

    @Override
    public List<NursingLevelVo> selectByPage(NursingLevelDto nursingLevelDto) {
        PageHelper.startPage(nursingLevelDto.getPageNum(), nursingLevelDto.getPageSize());
        List<NursingLevelVo> nursingLevels = nursingLevelMapper.selectByPage(nursingLevelDto.getName(), nursingLevelDto.getStatus());
        return nursingLevels;
    }

    @Override
    public NursingLevelVo selectById(Long id) {
        NursingLevel nursingLevel = nursingLevelMapper.selectById(id);
        NursingLevelVo nursingLevelVo = BeanUtil.toBean(nursingLevel, NursingLevelVo.class);
        return nursingLevelVo;
    }
}
*/
